package com.itheima.homework02;

import java.util.ArrayList;

public class SystemTest {
    public static void main(String[] args) {
        ArrayList<Integer> list = new ArrayList<>();
        long beginTime = System.currentTimeMillis();
        for (int i = 1; i <= 10000000; i++) {
            list.add(i);
        }
        long endTime = System.currentTimeMillis();
        System.out.println(endTime - beginTime + "毫秒");
    }
}
